package mapper;

import org.apache.ibatis.annotations.Param;
import entity.Computerroom;

import java.util.List;

public interface ComputerRoomMapper {
    List<Computerroom> getComputerRooms(@Param("computerroom") Computerroom computerroom,
                                        @Param("pageBegin") Integer pageBegin,
                                        @Param("pageSize") Integer pageSize);
    int count(@Param("computerroom")Computerroom computerroom);
    int insert(Computerroom computerroom);
    int update(Computerroom computerroom);
    int delete(@Param("roomId") Integer roomId);
    public Computerroom getById(@Param("id") Long id);
    public Computerroom findByAccount(@Param("roomName")String roomName);
}
